<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>权限管理</title>
		<import type='css' file="admin.pintuer4.css.pintuer" />
		<import type='css' file="admin.pintuer4.css.admin" />
		<link type="image/x-icon" href="http://www.pintuer.com/favicon.ico" rel="shortcut icon" />
		<link href="http://www.pintuer.com/favicon.ico" rel="bookmark icon" />
	</head>

	<body>
		<include file="Public:header" />
	<!--内容-->
	<div class="layout">
		<div class="admin">
		<form method="post" action="{:U('Role/update_permission')}">
		<input type="hidden" name="id" value="{$obj.id}"/>
	    <div class="panel admin-panel">
	    	<div class="panel-head"><strong>权限管理</strong></div>
	        <table class="table table-hover">
	        	<volist name="menu_arr_list" id="m">
	        	<tr>
		        	<th style="border-left:0px;border:1px solid #ddd;">{$m.name}</th>
		        	<td>
		        	<volist name="m.sub_menu" id="sub_m">
	
							<input type="checkbox" <in name="sub_m.id" value="$obj.menu_ids">checked="checked"</in> name="menu_ids[]" value="{$sub_m.id}"/>
							{$sub_m.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							
					</volist>
					</td>
	        	</tr>
	        	</volist>
	        </table>
	    </div>
	    <div class="form-button">
			<button class="button border-green" type="submit">修改</button>
		</div>
	    </form>
	    </div>
	    </div>
		<!--底部-->

		
		<import type='js' file="admin.pintuer4.js.jquery" />
		<import type='js' file="admin.pintuer4.js.pintuer" />
		<import type='js' file="admin.pintuer4.js.respond" />
		<import type='js' file="admin.pintuer4.js.layer" />
		<import type='js' file="admin.pintuer4.js.admin" />
		<script>
			$(function() {
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
	</body>

</html>